package controller;

import bean.ExaminationplanInfo;
import bean.UserInfo;
import biz.ExaminationplanBiz;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/Examinationplan")
public class ExaminationplanController {
    @Autowired
    private ExaminationplanBiz eb;
    @RequestMapping(value="/findplanbyuserId")
    @ResponseBody
   public String  findPlanByUsersId(int usersId){
        return  JSONArray.toJSONString(eb.findPlanByUsersId(usersId));
    }
}
